<div class="layui-fluid">
    <style>
        .layui-table-tool, .layui-table-column.layui-table-page,.layui-table-main {
            background-color: white;
        }
        .pass-name{
            color: #1e9fff;
            border-bottom: #1e9fff 1px solid;
        }
    </style>
    <fieldset class="layui-elem-field layui-bg-white">
        <legend></legend>
        <div class="layui-field-box">
            <div class="layui-form layui-row layui-col-space16 search-criteria" lay-filter="reset-val-filter">
                <div class="layui-col-md3">
                    <div class="layui-input-wrap">
                        <input type="text" name="title" placeholder="公告标题" class="layui-input" lay-affix="clear"
                               lay-filter="clear">
                    </div>
                </div>
                <div class="layui-col-md3">
                    <div class="layui-input-wrap">
                        <input type="text" name="creator" placeholder="发布人" lay-affix="clear" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-md3 ">
                    <div class="layui-input-wrap">
                        <div class="dict-module" type="select" dict-type="system_notice_type" name="type" title="类型"></div>
                    </div>
                </div>
                <div class="layui-col-md3">
                    <div class="layui-input-wrap">
                        <div class="dict-module" type="select" dict-type="system_notice_status" name="status" title="发布状态"></div>
                    </div>
                </div>

                <div class="layui-btn-container layui-col-xs12" style="text-align: center">
                    <button class="layui-btn layui-btn-sm" lay-submit lay-filter="table-search">查询</button>
                    <button id="reset" class="layui-btn layui-btn-sm layui-btn-primary">重置</button>
                    <button class="layui-btn layui-btn-sm layui-btn-primary layui-hide" onclick="showInput(this)">
                        <i class="layui-icon layui-icon-down"></i>
                    </button>
                </div>
            </div>
        </div>
    </fieldset>

    <table class="layui-hide" id="notice-list" lay-filter="notice-list"></table>
    <script id="noticeToolbar" type="text/html">
        <div class="layui-btn-container">
            <button class="layui-btn layui-btn-sm" lay-event="add">
                <i class="layui-icon layui-icon-add-circle"></i>添加
            </button>
            <button class="layui-btn layui-btn-sm layui-bg-red " lay-event="del">
                <i class="layui-icon layui-icon-error"></i>删除
            </button>
        </div>
    </script>
    <script id="barDemo" type="text/html">
        <div class="layui-clear-space">
            <a class="layui-btn layui-btn-xs layui-btn-link" lay-event="edit">编辑</a>
            <a class="layui-btn layui-btn-xs layui-btn-link" lay-event="view">查看</a>
            {{! {{# if(d.status == 1){  }} !}}
            <a class="layui-btn layui-btn-xs layui-btn-link" lay-event="fabu">撤回</a>
            {{! {{# } }} !}}
            {{! {{# if(d.status == 0){  }} !}}
            <a class="layui-btn layui-btn-xs layui-btn-link" lay-event="fabu">发布</a>
            {{! {{# } }} !}}
            <a class="layui-btn layui-btn-xs layui-btn-link" lay-event="del">删除</a>
        </div>
    </script>
    <script type="text/html" id="notice_form">
        <div class="layui-form" lay-filter="notice_form" id="lay-notice-form" style="margin: 15px 40px 15px 10px;">
            <input type="hidden" name="id">
            <fieldset class="layui-elem-field">
                <legend>基本信息</legend>
                <div class="layui-field-box">
                    <div class="layui-form-item">
                        <label class="layui-form-label">公告标题</label>
                        <div class="layui-input-block">
                            <input type="text" name="title" disabled value="" placeholder="请输入" lay-verify="required" lay-vertype="tips" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">公告类型</label>
                        <div class="layui-input-block">
                            <div class="dict-module" type="radio" isEdit="0" dict-type="system_notice_type" name="type" city="1"></div>
                        </div>
                    </div>
                </div>
            </fieldset>

        </div>
    </script>
</div>

<script type="text/javascript">
    {{#
        top.tools.loadscripts(["/js/page/system/message/announcement.js"], function () {
            templateViewInit();
        })
    }}
</script>